<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<c:set var="nature_value"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_value" /></c:set>
<%--<c:if test="${fn:substring(nature_value,0,1) eq 'A'}">--%>
	<div class="t_bar">${param.title4 }</div>
<%--</c:if>--%>
	<table class="t_css table01" width="100%" border="0" cellpadding="0" id="orgCooperationInfo" cellspacing="1">
		<col width ="20%"/>
		<col width ="15%"/>
		<col width ="12%"/>
		<col width ="23%"/>
		<col width ="15%"/>
		<col width ="15%"/>
		<tr >
			<td align="right">是否开展产学研活动：</td>
			<td>
			<span name="organization/whether_industrial_activity_name">
			<x:out select="$xmlData/data/organization/whether_industrial_activity_name"/>
			</span>
			</td>
			<td align="right">合作方区域：</td>
			<td>
			<span name="organization/cooperation_area_name">
			<x:out select="$xmlData/data/organization/cooperation_area_name"/>
			</span>
			</td>
			<td align="right">合作经费（万元）：</td>
			<td align="center">
			<span name="organization/cooperation_fund">
			<x:out select="$xmlData/data/organization/cooperation_fund"/>
			</span>
			</td>
		</tr>
	</table>
	<div class="t_bar">合作单位（最多三家）</div>
	<table  id="hzOrgTable" cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
		<col style="width: 5%"/>
		<col style="width: 40%"/>
		<col style="width: 55%"/>
		<thead >
		<tr style="border:1px solid #B7D1E6">
			<th class="TblHead" align="center">名称</th>
			<th class="TblHead" align="center">单位名称</th>
			<th class="TblHead" align="center"><span class="color_red">*</span>所属区域</th>
		</tr>
		</thead>
		<tbody id="tab">
		<%--<c:if test="${is_first==1}">--%>
			<c:set value="0" var="index" scope="page"/>
			<x:forEach select="$xmlData/data/cooperation/org" var="productOrg">

				<c:choose>
					<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
					<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
				</c:choose>
				<c:set var="gname"><x:out select="$productOrg/gname" /></c:set>
				<c:if test="${not empty gname}">
				<tr >
					<td align="center">
						<span   name="cooperation/org[${flag}${index}]@sequence_no" ><x:out select="$productOrg/@sequence_no"/></span>
					</td>

					<td align="center">
						<span   name="cooperation/org[${flag}${index}]/gname" ><x:out select="$productOrg/gname" /></span>
					</td>
					<td align="center">
							<%--						<input type="text" name="cooperation/org[${flag}${index}]/coop_fund_expend" value="<x:out select="$productOrg/coop_fund_expend" />" class="input_text required" style="width:80%;text-align: right;" label="合作单位-->第${index+1}行所属区域 " onfocus="InitInput.setNumber(this,7,2,2)" maxlength="50"/>--%>
						<label> <input type="checkbox" class="do " id="area_1_{index}" onclick="setCkbVal1(this);" style="vertical-align: middle;" name="hzdw_area_${index}" label="一带一路" value="01" /><span style="vertical-align: middle;">一带一路</span></label>
						<label> <input type="checkbox" class="do " id="area_2_{index}" onclick="setCkbVal1(this);" style="vertical-align: middle;" name="hzdw_area_${index}" label="长江经济带" value="02" /><span style="vertical-align: middle;">长江经济带</span></label>
						<label> <input type="checkbox" class="do " id="area_3_{index}" onclick="setCkbVal1(this);" style="vertical-align: middle;" name="hzdw_area_${index}" label="长三角" value="03" /><span style="vertical-align: middle;">长三角</span></label>
						<label> <input type="checkbox" class="do " id="area_4_{index}" onclick="setCkbVal1(this);" style="vertical-align: middle;" name="hzdw_area_${index}" label="自贸区" value="04" /><span style="vertical-align: middle;">自贸区</span></label>
						<input type="hidden" name="cooperation/org[${flag}${index}]/hzdw_area_value" id="hzdw_area_${index}_value" class="required" value="<x:out select="$productOrg/hzdw_area_value" />" label="所属区域" />
						<input type="hidden" name="cooperation/org[${flag}${index}]/hzdw_area_name" id="hzdw_area_${index}_name" value="<x:out select="$productOrg/hzdw_area_name" />" />
						<script type="text/javascript">
							var vals=','+'<x:out select="$productOrg/hzdw_area_value" />'+',';
							if(!!vals){
								$("#hzOrgTable input[name='hzdw_area_${index}']").each(function(i){
									if(vals.indexOf(","+$(this).val()+",")>-1){
										$(this).attr("checked",true);
									}else{
										$(this).removeAttr("checked");
									}
								});
							}
						</script>
					</td>
				</tr>
				</c:if>
				<c:set value="${index+1}" var="index" scope="page"/>
			</x:forEach>
		<%--</c:if>--%>
		<%--<c:if test="${is_first==0}">--%>
			<%--<c:set value="0" var="index" scope="page"/>--%>
			<%--<x:forEach select="$xmlData/data/cooperation/org" var="productOrg">--%>

				<%--<c:choose>--%>
					<%--<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>--%>
					<%--<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>--%>
				<%--</c:choose>--%>
				<%--<tr >--%>
					<%--<td align="center">--%>
						<%--<span   name="cooperation/org[${flag}${index}]@sequence_no" ><x:out select="$productOrg/@sequence_no"/></span>--%>
					<%--</td>--%>

					<%--<td align="center">--%>
						<%--<span   name="cooperation/org[${flag}${index}]/gname" ><x:out select="$productOrg/gname" /></span>--%>
					<%--</td>--%>
					<%--<td align="center">--%>
							<%--&lt;%&ndash;						<input type="text" name="cooperation/org[${flag}${index}]/coop_fund_expend" value="<x:out select="$productOrg/coop_fund_expend" />" class="input_text required" style="width:80%;text-align: right;" label="合作单位-->第${index+1}行所属区域 " onfocus="InitInput.setNumber(this,7,2,2)" maxlength="50"/>&ndash;%&gt;--%>
						<%--<label> <input type="checkbox" class="do " id="area_1_{index}" onclick="setCkbVal1(this);" style="vertical-align: middle;" name="hzdw_area_${index}" label="一带一路" value="01" /><span style="vertical-align: middle;">一带一路</span></label>--%>
						<%--<label> <input type="checkbox" class="do " id="area_2_{index}" onclick="setCkbVal1(this);" style="vertical-align: middle;" name="hzdw_area_${index}" label="长江经济带" value="02" /><span style="vertical-align: middle;">长江经济带</span></label>--%>
						<%--<label> <input type="checkbox" class="do " id="area_3_{index}" onclick="setCkbVal1(this);" style="vertical-align: middle;" name="hzdw_area_${index}" label="长三角" value="03" /><span style="vertical-align: middle;">长三角</span></label>--%>
						<%--<label> <input type="checkbox" class="do " id="area_4_{index}" onclick="setCkbVal1(this);" style="vertical-align: middle;" name="hzdw_area_${index}" label="自贸区" value="04" /><span style="vertical-align: middle;">自贸区</span></label>--%>
						<%--<input type="hidden" name="cooperation/org[${flag}${index}]/hzdw_area_value" id="hzdw_area_${index}_value" class="required" value="<x:out select="$productOrg/hzdw_area_value" />" label="所属区域" />--%>
						<%--<input type="hidden" name="cooperation/org[${flag}${index}]/hzdw_area_name" id="hzdw_area_${index}_name" value="<x:out select="$productOrg/hzdw_area_name" />" />--%>
						<%--<script type="text/javascript">--%>
							<%--var vals=','+'<x:out select="$productOrg/hzdw_area_value" />'+',';--%>
							<%--if(!!vals){--%>
								<%--$("#hzOrgTable input[name='hzdw_area_${index}']").each(function(i){--%>
									<%--if(vals.indexOf(","+$(this).val()+",")>-1){--%>
										<%--$(this).attr("checked",true);--%>
									<%--}else{--%>
										<%--$(this).removeAttr("checked");--%>
									<%--}--%>
								<%--});--%>
							<%--}--%>
						<%--</script>--%>
					<%--</td>--%>
				<%--</tr>--%>
				<%--<c:set value="${index+1}" var="index" scope="page"/>--%>
			<%--</x:forEach>--%>
		<%--</c:if>--%>
		</tbody>
	</table>

	<div class="t_bar">${param.title5 }</div>
	<table class="t_css table01" width="100%" border="0" cellpadding="0" id="mainBusiness" cellspacing="1">
		<tr style="border:1px solid #B7D1E6">
			<th width="5%">序号</th>
			<th width="40%">主要产品名称</th>
			<th width="55%">领域</th>
		</tr>
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/product/goods" var="goods">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr align="left" >
				<td align="center" >
				<span name="product/goods[${flag}${index}]@sequence_no">
						<x:out select="$goods/@sequence_no" />
				</span>
				</td>
				<td align="left" >
					<span name="product/goods[${flag}${index}]/gname">
						<x:out select="$goods/gname" />
					</span>
				</td>
				<td align="left" >
					<span name="product/goods[${flag}${index}]/field">
						<x:out select="$goods/field" />
					</span>
				</td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>

	</table>






